package com.ys.io.IO流;

import java.io.FileOutputStream;

public class Test {

    public static void main(String[] args) throws Exception{
        try (
            FileOutputStream fos = new FileOutputStream("a.txt");

        ){
            fos.write("hello".getBytes());
            // \r\n 是windos 下的回车与换行符
            fos.write("\r\n".getBytes());
            fos.write("word".getBytes());
            fos.close();
        }

    }
}
